package com.example.asapp.base;

import com.example.asapp.user.detail.Detail;
import com.example.asapp.user.detail.DetailDao;
import com.example.asapp.util.RedisService;
import lombok.extern.slf4j.Slf4j;
import org.apache.catalina.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.stream.Collectors;

@Slf4j
@RestController
public class BaseApi {

    @Autowired
    BaseService baseService;

    public Boolean isLogin(){
        return baseService.getLogin();
    }

    public String getUserId(){
        return baseService.getUserId();
    }

    public UserInfo getUserInfo(){
        return baseService.getUserInfo();
    }
}
